package com.taxi.service;

import com.taxi.dto.Car;
import com.taxi.remote.ServerDriverUserClient;
import com.taxi.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: aniu
 * @Date: 2023/9/28
 * @ClassName: CarService
 * @Description: Write class functionality and purpose here.
 * @Version: 1.0
 */
@Service
public class CarService {
    @Autowired
    ServerDriverUserClient serverDriverUserClient;
    public Result addCar(Car car) {
        return serverDriverUserClient.addCar(car);
    }

    public Result getCarList(int page, int limit, String address, String vehicleNo){
        return serverDriverUserClient.getCarList(page, limit, address, vehicleNo);
    };
}
